-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Notifier] add notification assertion in notifier doc #17719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Notifier] add notification assertion in notifier doc #17719
Conversation
notifier.rst
Outdated
which provide useful methods for testing your Notifier implementation. | ||
You can benefit from this class by using it directly or extending :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`. | ||
|
||
See :ref:`testing documentation <notifier-assertions>` for list of availables assertions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See :ref:`testing documentation <notifier-assertions>` for list of availables assertions. | |
See :ref:`testing documentation <notifier-assertions>` for the list of available assertions. |
notifier.rst
Outdated
Testing Notifier | ||
---------------- | ||
|
||
With FrameworkBundle Symfony provide a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With FrameworkBundle Symfony provide a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` | |
Symfony provides a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` |
notifier.rst
Outdated
|
||
With FrameworkBundle Symfony provide a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` | ||
which provide useful methods for testing your Notifier implementation. | ||
You can benefit from this class by using it directly or extending :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can benefit from this class by using it directly or extending :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`. | |
You can benefit from this class by using it directly or extending the :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`. |
notifier.rst
Outdated
|
||
.. versionadded:: 6.2 | ||
|
||
The Notifier assertions were introduced in Symfony 6.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Notifier assertions were introduced in Symfony 6.2. | |
The :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` was introduced in Symfony 6.2. |
Thanks Oskar Stark for review 😃 |
e670373
to
8583932
Compare
Thank you @MrYamous. |
While reading testing documentation I came across some assertions for notifications. I think it can be useful to talk about this directly in Notifier documentation too, WDYT ?